<template>
  <div>
    <el-form ref="form" :model="form" label-width="100px">
      <el-form-item label="用户名称">
        <el-input class="w500" v-model="form.user_info.name"></el-input>
      </el-form-item>
      <el-form-item label="意见建议">
        <el-input class="w500" type="textarea" v-model="form.form_content.content" :rows="5"></el-input>
      </el-form-item>
      <el-form-item label="表单发送人">
        <el-input class="w500" v-model="form.form_content.name"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button @click="goBack">返回</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  import { mapState } from 'vuex'

  export default {
    data: function () {
      return {
      }
    },
    computed: {
      ...mapState({
        form: state => state.opinion.saveData
      })
    },
    methods: {
      goBack () {
        this.$router.go(-1)
      }
    }
  }
</script>
